package cn.newhopedairy.sim.infrastructure.db.po;

import com.baomidou.mybatisplus.annotation.TableName;
import cn.newhopedairy.common.po.SuperPo;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 部门表
 *
 * @author Neo.Li
 * @since 2021-01-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("department")
@ApiModel(value="DepartmentPo对象", description="部门表")
public class DepartmentPo extends SuperPo {


    @ApiModelProperty(value = "上级部门ID，一级部门为0")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "部门名称")
    @TableField("department_name")
    private String departmentName;


}
